import { Component, EventEmitter, Output } from '@angular/core';
import { PiplineConifg } from 'src/components/scenarios/models';
// import { PiplineConifg } from '../../models';

@Component({
  selector: 'app-pipline-setting',
  templateUrl: './pipline-setting.component.html',
  styleUrl: './pipline-setting.component.scss'
})
export class PiplineSettingComponent {

  sidebarRightVisible: boolean = false;
  item?: PiplineConifg;
  @Output()
  onHide: EventEmitter<PiplineConifg> = new EventEmitter();  

  onEdit(item: PiplineConifg) {
    if (item) {
      this.item = item;
      this.sidebarRightVisible = true;
    }
  }
  onSidebarHide() {
    this.onHide.next(this.item!);
  }
}
